package com.dingli.admin.service.impl;


import com.dingli.admin.service.DeleteBank;
import com.dingli.framework.entity.Bank;
import com.dingli.framework.mapper.BankMapper;
import com.dingli.framework.util.Response;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DeleteBankImpl implements DeleteBank {
    @Autowired
    private BankMapper bankMapper;
    @Override
    public Response<Bank> deleteBank(long bankId){
        int bank = bankMapper.deleteBank( bankId);
        if (bank>=1){
            return new Response(200,"删除成功");
        }else {
            return new Response(500,"删除失败");
        }
    }
}